package com.itheima;

public class For {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 1; i < 10;i+=2) {
            sum = sum + i;
//            i = i+2;
        }
        System.out.println("1-5的和：" + sum);
    }
}
